//
//  LHCmd.h
//  LazyHome
//
//  Created by yh on 2018/5/8.
//  Copyright © 2018年 yh. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : ushort {
    CMD_S2P_DEVICESTATUS = 0x2001, //服务器返回设备状态
    CMD_S2P_DEVICES = 0x2002, //服务器返回设备列
    CMD_S2P_SENDEVICE_BASEINFO = 0x2003, //服务器返回设备基本信息
    CMD_S2P_SENDEVICE_STATUSINFO = 0x2004, // 服务器返回设备状态信息
    
    
    
} CMD_S2P;

typedef enum : ushort {
    CMD_P2S_LOGIN = 0x1000,
    CMD_P2S_GETDEVICES = 0x1001,
    CMD_P2S_HANDLEP0 = 0x1003,
    CMD_P2S_GETDEVICE_BASEINFO = 0x1004, //获取设备的基本信息
    CMD_P2S_GETDEVICE_STATUSINFO = 0x1005, //获取设备的状态
    CMD_P2S_CHANGEDEVICE_STATUS = 0x1006, //更改设备状态
    CMD_P2S_HEARTBEAT = 0x1007, //心跳包
} CMD_P2S;


typedef enum : ushort {
    DEVICETYPE_PHONE = 0x0000, //手机
    DEVICETYPE_8RELAY = 0x1000, //8路继电器
    
} DEVICETYPE;



